package dao;

/**
 *
 * The class DAOException is a form of Throwable that indicates</br>
 * conditions that DAO Layer can to catch.
 */
public class DAOException extends Exception {

    /**Code identifies error.*/
	private int code;
	
	/**Message describe error.*/
    private String message;

    public DAOException(int code, String message)
    {
        this.code = code;
        this.message = message;
    }

    /**
     * Get error code.
     * @return error code
     */
    public int getCode()
    {
        return this.code;
    }
    
    
    /**
     * Get error message.
     * @return error message
     */
    public String getMessage()
    {
        return this.message;
    }

}
